package application.controller
{
	import application.model.FlashVarsProxy;
	import application.view.ApplicationMediator;
	
	import org.puremvc.interfaces.ICommand;
	import org.puremvc.interfaces.INotification;
	import org.puremvc.patterns.command.SimpleCommand;
	
	public class StartupCommand extends SimpleCommand implements ICommand
	{
		private var main:Main;
		
		override public function execute(notification:INotification):void
		{
			main = notification.getBody() as Main;
			
			facade.registerProxy( new FlashVarsProxy(main.parameters) );
			
			facade.registerMediator( new ApplicationMediator(main) );
		}
	}
}